<?php

namespace App\Events;

use App\Models\LoanApplication;
use App\Models\Org;
use App\Models\User;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;

class UpdateEvent
{
    use Dispatchable, SerializesModels;

    /**
     * @var array
     */
    public $originLoan;

    /**
     * @var array
     */
    public $newLoan;

    /**
     * @var User
     */
    public $user;

    /**
     * @param array $originLoan
     * @param array $newLoan
     * @param $user
     */
    public function __construct(array $originLoan, array $newLoan, $user)
    {
        $this->originLoan = $originLoan;
        $this->newLoan = $newLoan;
        $this->user = $user;
    }
}
